import request from '@/utils/request'

// 查询套餐列表
export function listPackageinfo(query) {
  return request({
    url: '/system/packageinfo/list',
    method: 'get',
    params: query
  })
}

// 查询套餐详细
export function getPackageinfo(ckPackageInfoId) {
  return request({
    url: '/system/packageinfo/' + ckPackageInfoId,
    method: 'get'
  })
}

// 新增套餐
export function addPackageinfo(data) {
  return request({
    url: '/system/packageinfo',
    method: 'post',
    data: data
  })
}

// 修改套餐
export function updatePackageinfo(data) {
  return request({
    url: '/system/packageinfo',
    method: 'put',
    data: data
  })
}

// 删除套餐
export function delPackageinfo(ckPackageInfoId) {
  return request({
    url: '/system/packageinfo/' + ckPackageInfoId,
    method: 'delete'
  })
}
